package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.entity.vo.mall.MallProductLabelVO;
import com.sc.nft.enums.task.ActivityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 分享购活动详情DTO
 *
 * @author liGen
 * @version 1.0
 * @date 2023/12/11 2:34 下午
 */
@Data
public class MallActivityShareDetailDTO {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "活动类型")
    private ActivityTypeEnum activityType;

    @ApiModelProperty(value = "商品标题")
    private String productName;

    @ApiModelProperty(value = "营销活动ID")
    private Long activityId;

    @ApiModelProperty(value = "有效分钟")
    private Integer validMinute;

    @ApiModelProperty(value = "最低订单数量")
    private Integer minOrderNum;

    @ApiModelProperty(value = "团长奖励比例")
    private BigDecimal rewardPercentage;

    @ApiModelProperty(value = "详细规则")
    private String detailedRules;

    @ApiModelProperty(value = "藏品Id")
    private Long collectionId;

    @ApiModelProperty(value = "藏品名称")
    private String firstTitle;

    @ApiModelProperty(value = "上架状态")
    private Boolean status;

    @ApiModelProperty(value = "分享购活动规格")
    private List<AdminMallActivityShareSpecsDetailDTO> adminMallActivityShareSpecsDetailDTOList;

    @ApiModelProperty("商品标签")
    private List<MallProductLabelVO> labelList;

    @ApiModelProperty("活动商品创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
